package com.rede.didiok.user.restapi;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.common.constant.conf.SysConf;
import com.rede.didiok.common.dto.user.GeneralEditDto;
import com.rede.didiok.common.utils.ResultUtil;
import com.rede.didiok.user.service.GeneralEditService;

/**
 * 通用修改表 RestApi
 *
 * @author Rede
 * @date 2023年10月7日22:37:39
 */
@Api(value = "通用修改接口", tags = {"通用修改接口"})
@RestController
@RequestMapping("/generalEdit")
@Slf4j
public class GeneralEditRestApi {

    @Autowired
    private GeneralEditService generalEditService;

    /**
     * 获取通用修改列表
     * @param generalEditDto
     * @return
     */
    @ApiOperation(value = "获取通用修改列表", notes = "获取通用修改列表", response = String.class)
    @PostMapping("/getGeneralEditList")
    public String getGeneralEditList(@RequestBody GeneralEditDto generalEditDto) {

        return ResultUtil.result(SysConf.SUCCESS, generalEditService.getGeneralEditList(generalEditDto));
    }
}
